package module{
	
	import component.Image;
	
	import flash.display.Sprite;
	
	public class LogoShell extends Sprite{
		
		public static var instance:LogoShell = new LogoShell();		
		
		public function LogoShell(){
			var top:Image = addChild(new Image()) as Image;
			top.load("resource/Top.png",function():void{
				var bottom:Image = addChild(new Image()) as Image;
				bottom.load("resource/Bottom.png");
				bottom.y = 450;
				onResize();
			});
			var ji:Image = addChild(new Image()) as Image;
			ji.load("resource/Ji.png",function():void{
				onResize();
			});
			ji.x = 300
			ji.y = 245;
			var wang:Image = addChild(new Image()) as Image;
			wang.load("resource/Wang.png",function():void{
				onResize();
			});
			wang.x = 500;
			wang.y = 245;
		}
		
		public function onResize():void{
			x = ((Global.stage.stageWidth - width)>>1)-140;
			y = ((Global.stage.stageHeight - height)>>1)-100;
		}
	}
}